find_package(Qt6 REQUIRED COMPONENTS Core QUIET)
# find_package(Qt6 REQUIRED COMPONENTS LinguistTools)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(PROJECT_SOURCES    
    model/attention.h
    model/attentionmodel.h model/attentionmodel.cpp
    model/livemodel.h model/livemodel.cpp
    model/liveinfo.h
    model/model.h model/model.cpp
    model/modeltype.h
    model/presenter.h
    model/presentermodel.h model/presentermodel.cpp
    user/localuser.h
    user/loginuser.h
    user/openuser.h
    user/user.h
    user/userdetail.cpp
    user/userdetail.h
    user/useropeninfo.cpp
    user/useropenInfo.h
    user/usermanager.h
    utils/idgenerator.cpp
    utils/idgenerator.h
    utils/utils.cpp
    utils/utils.h
)

add_library(Core STATIC ${PROJECT_SOURCES}
    model/recordinfo.h
    model/recordmodel.h model/recordmodel.cpp)

target_compile_definitions(Core PRIVATE)

target_include_directories(Core PRIVATE
    ${PROJECT_SOURCE_DIR}/src/libs
)

target_link_libraries(Core PRIVATE
    Qt6::Core
)

# qt6_add_translations(Core
#     TS_FILES yinghua_en_US.ts yinghua_zh_CN.ts
#     QM_FILES_OUTPUT_VARIABLE qm_files
#     # LUPDATE_OPTIONS -no-obsolete
# )
